package finalproject.model.items;

import finalproject.model.player.Player;
import finalproject.view.StringManager;

/**
 * A PowerDrink is an item that can be used by a player to increase their energy by maximum.
 * It also increases the energy of pet by maximum.
 * 
 * @author Shafiq Daniel
 *
 */

public class PowerDrink extends Item{

	public PowerDrink() {
		super(StringManager.getString("powerdrink"), StringManager.getString("powerdrinkdescription"), 2, true, false, false);
	}

	@Override
	public void use(Player player) {
		player.getEnergy().setEnergy(player.getEnergy().getMaxEnergy());
		player.getPet().getEnergy().setEnergy(player.getPet().getEnergy().getMaxEnergy());
		StringManager.outPut("energyrestored");
		
	}

}
